{if $smarty.request.is_ajax neq 1}
<include file="inc:header" />	
<div class="page" id='{$data.act}'>
<?php
	$this->_var['back_url'] = wap_url("index","index");
	$this->_var['back_page'] = "#index";
	$this->_var['back_epage'] = $_REQUEST['epage']=="" ? "#index" : "#".$_REQUEST['epage'];
?>
<include file="inc:title" />
<div class="content" style="background-color:#fff">
<!--注册页面-->
	{/if}

<div class="register_login" id="mb_register">

	
		<div class="bg_fff register_login_pd">
			<div class="bb1 bor height w_b">
				 <div class="name">姓   名</div>
				 <input class="r_l_input w_b_f_1" id="real_name" name="real_name" type="text" placeholder="请输入您的真实姓名">
			</div>
			<div class="bb1 bor height w_b">
				 <div class="name">身份证号</div>
				 <input class="r_l_input w_b_f_1" id="idno" name="idno" type="text" placeholder="请输入您的身份证号码">
			</div>
			
			<div class="bb1 bor height w_b">
				 <div class="name">手 机 号</div>
				 <input class="r_l_input w_b_f_1" id="phone" name="phone" type="text" placeholder="请输入您的手机号码">
			</div>
			<div class="bb1 bor height w_b">
				 <div class="name">验 证 码</div>
				 <input class="r_l_input w_b_f_1" id="mobile_code" name="mobile_code" type="text" placeholder="请输入验证码">
				 <div class="ui-button_getcode_parent" style="  width:6rem;"><input class="ui-button_getcode " id="getcode" type="button" value="获取验证码"></div>
			</div>
			
		</div>
		<div class="register_login_pd">
			<input class="ui-button_login r_l_but" type="submit" name="commit" id="signup-submit" value="确定">
		</div>
		
</div>





{if $smarty.request.is_ajax neq 1}
<include file="inc:footer" />
{/if}
<script>
/*签署法大大合同的信息提交*/
	$(document).on("pageInit", "#fddcontract_uc", function(e, id, page) {
		var is_lock_send_vy = null;
		
		
		
		$("#fddcontract_uc #getcode").click(function(){
			if(localStorage.sendtime !="undefined" &&  parseInt(new Date().getTime()/1000) - localStorage.sendtime < 60){
				$.alert("发送中，请稍后");
				return false;
			}
			if(is_lock_send_vy || $(this).hasClass(".btn_disable")){
				return false;
			}
			var ajaxurl = WAP_PATH +'/index.php?ctl=send_fdd_code';
			var query = newObject();
			query.mobile = $.trim($("#fddcontract_uc #phone").val());
			query.post_type = "json";
			$.showIndicator();
			$.ajax({
				url:ajaxurl,
				data:query,
				type:"Post",
				dataType:"json",
				success:function(data){
					$.hideIndicator();
					if(data.response_code == 1){
						localStorage.sendtime = parseInt(new Date().getTime()/1000);
						left_rg_time = 60;
						left_time_to_send_regvy($("#fddcontract_uc #getcode"));
					}
					$.alert(data.show_err);
				},error:function(){
					$.hideIndicator();
					$.toast("通信失败");
				}
			});
		});
		
		$("#fddcontract_uc #signup-submit").click(function(){
			$.showIndicator();
			var ajaxurl = WAP_PATH +'/index.php?ctl=fdd_checkmobilecode';
			var query = new Object();
			query.real_name = $.trim($("#fddcontract_uc #real_name").val());
			query.idno = $.trim($("#fddcontract_uc #idno").val());
			query.mobile = $.trim($("#fddcontract_uc #phone").val());
			query.mobile_code = $.trim($("#fddcontract_uc #mobile_code").val());
			query.post_type = "json";
			$.ajax({
				url:ajaxurl,
				data:query,
				type:"Post",
				dataType:"json",
				success:function(data){
					$.hideIndicator();
					if(data.response_code == 0)
					{
						$.alert(data.show_err);
					}else{
						RouterURL(WAP_PATH +'/index.php?ctl=fdd_checkinfo');
					}
				}
				,error:function(){
					$.hideIndicator();
					$.toast("通信失败");
				}
			});
		});
		
		
	});
</script>	








